var obj={
    name:'larry',
    age:18,
    gender:'男'
};
// for in循环遍历对象 遍历数组
for(var key in obj){
    console.log(key,obj[key]);
};
var arr=[1,2,3,4];
for(var key in arr){
    console.log(key,arr[key]);
};